<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 if($result['error'] == -1){
     $result['url'] = $this->Js->redirect('/login');
 }
 echo $this->Js->object($result);

?>
